﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ZhCun.WebCommon.ApiModels;
using ZhCun.WebCommon.ViewModels;
using ZhCun.WebCommon.WebApi;
using ZhCun.WebTemplate.AL;
using ZhCun.WebTemplate.Models;

namespace ZhCun.WebTemplate.Web.ApiControllers
{
    public class ApiTmController : ApiAuthorizeController<ALTmPage>
    {
        /// <summary>
        /// 获取httplog
        /// </summary>
        [HttpPost]
        public ApiResultArray<TTest> GetHttpLog(ArgGetList arg)
        {
            var rList = ALObj.GetList(arg, out int total);
            return CreateArrayResult(rList, total);
        }
    }
}